import {cloneDeep,merge} from "lodash"
import {
    ACTION_NAME,
} from "../actions"

const initialState = {
  listInfo: {}
}

const handlers = {
  [ACTION_NAME]: (state, data = {content: []}) => {
    return merge()
  }
}

export default (state = initialState, action) => {
  const {type, data} = action
  if (!handlers[type]) {return state}
  return handlers[type](state, data)
}
